import Vue from 'vue'
import Router from 'vue-router'
import Config from '@/components/Config'
import ConfigMap from '@/components/ConfigMap'
import Ipool from '@/components/Ipool'
import Test from '@/components/test'
import NotFound from '@/components/notFound'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/config'
    },
    {
      path:'/config',
      name:'config',
      component:Config
    },
    {
      path:'/config-map',
      name:'map',
      component: ConfigMap
    },
    {
      path:'/test',
      name:'test',
      component:Test
    },
    {
      path:'/ip-pool',
      name:'ip-pool',
      component: Ipool
    },
    {
      path:'*',
      name:'404',
      component:NotFound
    }
  ]
})
